package com.kfm.controller;

import com.kfm.util.Resp;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sysUser")
public class SysUserController {

    @GetMapping
    @PreAuthorize("hasRole('User') or hasAuthority('sys:user')")
    public Resp login(){
        return Resp.ok();
    }
}
